<?php
class Login_Data_Registred implements Login_Data_Mainbale{
    
    private $core_controller_dataoperation;
    
    public function __construct() {
        $this->core_controller_dataoperation = new Core_Controller_Dataoperation;
    }
    
    public function main(array $variables = null) {
        $variables['query'] = "INSERT INTO account_settings(username, email, password, status_name, access_level) VALUES('".$variables['post']['username']."', '".$variables['post']['email']."', '".sha1($variables['post']['password'])."', 'Aktywny', 1);";
        return $this->core_controller_dataoperation->main($variables);
    }

}
